package com.yunsom.testdemo.design.strategy;

/**
 * @author Xbao
 * @version 1.0
 * @description
 * @date 2021/3/9 16:46
 */
public class Context {

  private Strategy strategy;

  public Context(Strategy strategy) {
    this.strategy = strategy;
  }

  public int executeOperation(int num1, int num2){
    return strategy.doOperation(num1,num2);
  }

}
